<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <script type="text/javascript" src="Public/dest/jquery-1.11.3.min.js"> </script>
	    	
	   
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<form action="" method="post" enctype="multipart/form-data">					
		<div class="alert alert-success">修改品牌</div>
		<div class="form-group">
			<label for="exampleInputEmail1">品牌名称</label>
			<input value="{{$oldData['bname']}}" id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类名称"  name="bname">
		</div>
		<script type="text/javascript">
			$(function(){
				$('.xx').click(function(){
					var str='<label for="exampleInputEmail1">logo</label><input id="exampleInputEmail1" type="file" name="logo">';
					$('.box').html(str);
				})
			})
		</script>

		{{if value="$oldData['logo']"}}
		<div class="form-group box">
			<img width="200" height="150" src="{{$oldData['logo']}}" alt="" />
			<input class="xx" type="button" value="X" />
			<input value="{{$oldData['logo']}}" type="hidden" name="logo" />
		</div>
		{{else}}
		<div class="form-group">
			<label for="exampleInputEmail1">logo</label>
			<input id="exampleInputEmail1" type="file" name="logo">
		</div>
		{{endif}}
		<div class="form-group">		
			<input {{if value="$oldData['hot']==1"}}checked="checked"{{endif}} value="1" id="exampleInputEmail1" type="radio"  name="hot">热门
			<input {{if value="$oldData['hot']==0"}}checked="checked"{{endif}} value="0" id="exampleInputEmail1" type="radio"  name="hot">非热门
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">排序</label>
			<input value="{{$oldData['bsort']}}" id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类名称"  name="bsort">
		</div>
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
